package com.mingqijia.gassafety.db.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mingqijia.gassafety.db.entity.ServiceComboDetail;
import com.mingqijia.gassafety.db.entity.vo.UserServiceComboVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;


/**
 * <p>
 * 用户表 Mapper 接口
 * </p>
 *
 * @author wanghai
 * @since 2022-02-22
 */
@Mapper
@Repository
public interface ServiceComboDetailMapper extends BaseMapper<ServiceComboDetail> {
    /**
     * 获取用户当前有效的服务单信息
     * @param code
     * @param userId
     * @return
     */
    List<UserServiceComboVO> getUserServiceCombo(@Param("code") String code, @Param("userId") Integer userId);
}
